<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
   %>

<!--  ====================================从后台传过来的数据=====================================-->
<div class="none">
	<div id="currentPage">${page}</div>
	<div id="totalPages">${totoalPage}</div>
	<div id="currentCocourseCode">${cocourseCode}</div>
	<div id="currentCid">${cid}</div>
</div>
<!-- =====================================页面内容 ================================================-->
<div class="Box" style="margin-top:15px;"  >
     <!--================================== 内容标题 =============================================-->
	<div class="Box-head Border" style="padding-left:25px;" >
		<label class="Labelstyle">学生成绩管理</label>
	</div>
	<!-- ===================================具体内容 ===========================================-->
	<div class="Box-content"  style="padding:25px;">
		<!--  显示的选择菜单-->
		<div class="funxtion Box-head Border " style="padding-top:20px;padding-bottom:20px;margin-bottom:10px;">
			<div class="span3 offset1 ">
				<select id="courseName">
				   <option value='0'>不限</option>
					<c:forEach var="coName" items="${courseName}">
						<option value=${coName.cocourseCode}>${coName.coname}</option>
					</c:forEach>
				</select>
			</div>
			<div class="span4 offset1">
				<select id="classes">
				<option value='0'>不限</option>
				</select>
			</div>
			<div class="offset1">
			<input type="button" class="btn btn-info"  id="selsect" value="查询">
			</div>
		</div>
		<table class="table table-hover table-striped table-bordered">

			<thead>
				<tr>
					<th width="25%">学号</th>
					<th width="15%">姓名</th>
					<th width="15%">年级</th>
					<th width="15%">课程名称</th>
					<th width="15%">课程代码</th>
					<th width="20%">成绩</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach var="stuSco" items="${studentScore}">
					<tr>
						<td>${stuSco.snumber}</td>
						<td>${stuSco.sname}</td>
						<td>${stuSco.sgrade}</td>
						<td>${stuSco.scouseCode }</td>
						<td>${stuSco.sscouseName }</td>
						<td>${stuSco.score }</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		<!-- ==============================分页按钮的显示==================================================-->
		<div id="example" class="center"></div>
         <!-- 功能按钮 -->
		<div class="funxtion Box-head Border " style="padding-top:20px;padding-bottom:20px;margin-bottom:10px;">
			<div class="span4 offset1">
				<input type="button" class="btn btn-info" id="exportScore" value="导出学生成绩"></div>
		</div>
	</div>
	<script>
	$("#exportScore").click(function(){
		location.href="/Examination/admin/studentlist.xlsx";
	});
	</script>
</div>
<script src="<%=basePath%>JS/StudentScore.js"></script>